home *** CD-ROM | disk | FTP | other *** search
/ The Fatted Calf / The Fatted Calf.iso / Applications / Audio / Patchmix / Source / PaletteView.h < prev    next >
Text File  |  1992-07-31  |  810b  |  33 lines

  1. // PaletteView.h
  2. // By Jayson Adams, NeXT Developer Support Team
  3. // You may freely copy, distribute and reuse the code in this example.
  4. // NeXT disclaims any warranty of any kind, expressed or implied, as to its
  5. // fitness for any particular use.
  6.  
  7. #import <appkit/View.h>
  8.  
  9. #define    PAL_IMAGES         20    // just the ugen icons, not converters
  10. #define ROWS            4
  11. #define COLS            5    // ugen columns
  12. #define CONV_IMAGES        6
  13. #define ICON_SIZE        80    // except for ...
  14. #define CONV_HEIGHT        53  // converters are 53 high
  15.  
  16.  
  17. @interface PaletteView:View
  18. {
  19.     NXRect       hotRect[PAL_IMAGES+CONV_IMAGES];
  20.     id             image[PAL_IMAGES+CONV_IMAGES];
  21.     id            patchVw;
  22.     id            dragImage;
  23. }
  24.  
  25. /* instance methods */
  26. - (BOOL)acceptsFirstMouse;
  27. - setImages;
  28. - mouseDown:(NXEvent *)theEvent;
  29. - drawSelf:(NXRect *)rects :(int)count;
  30.  
  31. @end
  32.  
  33.